<?php
namespace Modules\Category\Observers;
use Modules\Category\Models\Category;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
class CategoryServer
{
    public function created(Category $category)
    {
        clear_cache_category();
        Log::info("Category created: {$category->id}");

    }
    public function updated(Category $category)
    {
        clear_cache_category();
    }
    public function deleted(Category $category)
    {
        clear_cache_category();
    }
}


